<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>article_add</title>
    <link rel="stylesheet" href="css/element.css">
    <script src="js/vue.min.js"></script>
    <script src="js/element.js"></script>
</head>
<body>
<div id="box">
    <div><h1>添加文章</h1></div>
    <!--    标题-->
    <div><span style="margin-left: 50px">标题</span>
        <el-input style="width: 1200px;margin-left: 20px" v-model="input" placeholder="文章标题"></el-input>
    </div>
    <!--    内容-->
    <div style="margin-top: 20px">
        <span style="margin-left: 50px">
            内容
        </span>
        <el-input
                style="margin-left: 20px;width: 1200px"
                type="textarea"
                :rows="6"
                placeholder="请输入文章内容"
                v-model="textarea">
        </el-input>
    </div>
    <!--    按钮-->
    <div style="margin-top: 20px;text-align: center">
        <el-button type="primary" @click="re">发布</el-button>
    </div>
</div>

<script>
    new Vue({
        el: '#box',
        data() {
            return{
                textarea: '',
                input: ''
            }

        },
        methods: {
            re(){
                location.reload();
            }
        }
    })
</script>
</body>
</html>